﻿<UserControl
    x:Class="ExampleApp.Views.RegionNavigation.HomeRegionView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ExampleApp.Views.RegionNavigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:View="using:StyleMVVM.View"
    View:ViewModel.Name="HomeRegionViewModel"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <Grid Style="{StaticResource LayoutRootStyle}">
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
            <TextBlock Text="Home Page" HorizontalAlignment="Center" FontSize="14"/>
            <StackPanel Orientation="Horizontal" >
                <Button Content="Back" Margin="5" IsEnabled="{Binding CanGoBack}" View:Region.GoBackOn="Click"/>
                <Button Content="Next" Margin="5" View:Region.NavigateOn="Click"  View:Region.NavigateTo="SecondRegionView"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
